package top.scsoul.voes.common.core.domain.model;

import org.hibernate.validator.constraints.Length;

import java.util.List;

public class RoleVo {
    /**
     * 角色id
     */
    private Integer id;
    /**
     * 角色标识
     */
    @Length(min = 1,max = 20,message = "角色标识长度必须在1-20之间")
    private String roleKeyword;
    /**
     * 角色描述
     */
    @Length(min = 1,max = 20,message = "角色描述长度必须在1-20之间")
    private String roleDesc;

    private List<Integer> permissionIds;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleKeyword() {
        return roleKeyword;
    }

    public void setRoleKeyword(String roleKeyword) {
        this.roleKeyword = roleKeyword;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public List<Integer> getPermissionIds() {
        return permissionIds;
    }

    public void setPermissionIds(List<Integer> permissionIds) {
        this.permissionIds = permissionIds;
    }

    @Override
    public String toString() {
        return "RoleVo{" +
                "id=" + id +
                ", roleKeyword='" + roleKeyword + '\'' +
                ", roleDesc='" + roleDesc + '\'' +
                ", permissionIds=" + permissionIds +
                '}';
    }
}
